<div class="container"> 
	<div class="row"> 
		<div class="panel panel-info">
			<div class="panel-heading">
				<div class="panel-title">Domain Transfer</div>
			</div>
			<div class="panel-body">
				<div class="row">
					<div class="col-md-12">
						<div class="well">
							<h1 class="text-center">Domain Transfer</h1>
							<hr style="background:skyblue;height:1px;"/>
							<div class="row">
								<div class="col-md-12">
									<h3 style="margin-bottom:0;color:#E87600">Review Your Transfer Order</h3>
									<form action="#" method="post" id="submitorder">
										
										<table class="table">
											<thead>
												<tr class="success">
													<th>Domain Name</th>
													<th>Lock</th>
													<th>Auto Renew</th>
													<th>Retain WHOis</th>
													<th>Password Set</th>
													<th>Price</th>
												</tr>
											</thead>
											<tbody>
												
												<tr>
													<td><?=$transferdetails['sld'].'.'.$transferdetails['tld']?></td>
													<td><?=$transferdetails['lock']?></td>
													<td><?=$transferdetails['renew']?></td>
													<td><?=$transferdetails['contact']?></td>
													<td><?=$transferdetails['password']?></td>
													<td>$<?=$transferdetails['price']?></td>
												</tr>
												<tr>
													<td colspan="6" align="right">Total: $<?=$transferdetails['price']?></td>
												</tr>
											</tbody>
										</table>
										<hr style="background:skyblue;height:1px;"/>
										<p class="text-muted"> <small> By clicking Submit Order, you acknowledge that you have read and agree to the eNom <a data-toggle="modal" role="button" href="#myModal">Terms of Service Agreement</a></small></p>
										<input type="hidden" name="TransferOrderID" value="<?=$transferdetails['transferorderid']?>">
										<button type="submit" class="btn btn-warning" onclick="return transfersubmit()">Submit Order</button>
										<button type="button" class="btn btn-default">Cancel Order</button>
									</form>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<script>
function transfersubmit()
{
	//alert($('#domain_transfer').serialize());
	$.ajax({
		url: '<?php echo base_url('enom/transfersubmit');?>',
		type: 'post',
		data: $('#submitorder').serialize(),
		dataType:'json',
		beforeSend: function() {
			$('#processing-modal').modal('show');
		},		
		complete: function() {
			//$(e).children('.blue').css('background','#F9B014');
			//$(e).children('.blue').children('span').text('checkout');
		},
		success: function(json) {
			if(json['message'])
			{
				$('#ajax_msg').html('<div class="alert alert-success alert-dismissable flashmsg"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>'+ json['message'] + '</div>');
				$('#ajax_msg .flashmsg').delay(5000).fadeOut('slow');
				$('html, body').animate({ scrollTop: 0 }, 'slow'); 
				$('#processing-modal').modal('hide');
				$('#contentwrapperinner').html(json['htmlresult']);
			}
			
		}
	});
	return false;
}

</script>
